coordinator:
  local:
    namespaces:
      - namespace: default
        type: unaggregated
        retention: 48h

db:
  hostID:
    resolver: hostname 
  logging:
    file: "{{ m3db_logs_dir }}/m3db.log"
    level: info

  listenAddress: 0.0.0.0:9000
  clusterListenAddress: 0.0.0.0:9001
  httpNodeListenAddress: 0.0.0.0:9002
  httpClusterListenAddress: 0.0.0.0:9003
  debugListenAddress: 0.0.0.0:9004

  client:
    writeConsistencyLevel: majority
    readConsistencyLevel: unstrict_majority

  gcPercentage: 100
  writeNewSeriesAsync: true
  
  limits:
    writeNewSeriesPerSecond: 1048576

  cache:
    series:
      policy: lru
    postingsList:
      size: 262144

  commitlog:
    flushMaxBytes: 524288
    flushEvery: 1s
    queue:
      calculationType: fixed
      size: 2097152

  filesystem:
    filePathPrefix: {{ m3db_data_dir }} 

  discovery: 
    type: m3db_cluster 
    m3dbCluster: 
      env: default_env
      endpoints: 
{% for etcd_ip,etcd_port in m3db_cluster %}
        - {{ etcd_ip }}:{{ etcd_port }}
{% endfor %}
          #tls:
          #  caCrtPath: /etc/etcd/certs/ca.pem
          #  crtPath: /etc/etcd/certs/etcd-client.pem
          #  keyPath: /etc/etcd/certs/etcd-client-key.pem

 
